package com.maiji.cloud.entities.shopingmall;

import com.baomidou.mybatisplus.annotations.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 *  运费规则表
 */
@NoArgsConstructor
@Data
@Accessors(chain=true)
@Table(name = "rule_freight")
public class RuleFreight implements Serializable {

    @TableId
    @Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
    private String uuId;

    @Column(name = "delivery", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String delivery; // 配送方式

    @Column(name = "area_names", type = MySqlTypeConstant.VARCHAR, length = 90)
    private String areaNames;  // 地区代码集合

    @Column(name = "head_weight", type = MySqlTypeConstant.INT, length = 2)
    private Integer headWeight;  // 首重量(克)

    @Column(name = "freight", type = MySqlTypeConstant.DOUBLE, length = 5, decimalLength = 2)
    private Double freight;  // 运费

    @Column(name = "more_weight", type = MySqlTypeConstant.INT, length = 2)
    private Integer moreWeight;  // 续重量(克)

    @Column(name = "more_freight", type = MySqlTypeConstant.DOUBLE, length = 5, decimalLength = 2)
    private Double moreFreight;  // 续费

    @Column(name = "free_freight", type = MySqlTypeConstant.DOUBLE, length = 5, decimalLength = 2)
    private Double freeFreight;  // 包邮最低购物金额

    @Column(name = "userable", type = MySqlTypeConstant.BIT)
    private Boolean userable;  // 是否有效

}
